Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INT-2974: Support OnPush change detection #368

Merged
merged 9 commits into from
Apr 5, 2024

Conversation

danoaky-tiny
Copy link
Contributor

@danoaky-tiny danoaky-tiny commented Jan 12, 2024

Jira: INT-2974

Description of changes:
As described in #311, when a parent component was using OnPush change detection, changes made in the editor component weren't picked up.

This is fixed by changing the editor's change detection strategy to use OnPush itself, and marking when changes need to be checked manually. Changes are marked to be checked on the editor's blur event and on any of the modelEvents. This covers both for checking when "touched" and when made "dirty".

I've also added a Storybook component to show this functionality.

Note:
This PR depends on changes in #367, so merge that first.
Moved the base to feature-INT-3274. So this is being merged first now.

@danoaky-tiny danoaky-tiny requested a review from a team as a code owner January 12, 2024 04:58
@tiny-james tiny-james removed their request for review March 14, 2024 06:22
@danoaky-tiny danoaky-tiny changed the base branch from main to feature/INT-3274 April 4, 2024 01:25
CHANGELOG.md Outdated Show resolved Hide resolved
@danoaky-tiny danoaky-tiny merged commit 76e0e52 into feature/INT-3274 Apr 5, 2024
2 of 3 checks passed
@danoaky-tiny danoaky-tiny deleted the feature/INT-2974 branch April 5, 2024 05:58
danoaky-tiny added a commit that referenced this pull request Apr 8, 2024
* INT-2974: Now uses OnPush change detection

* INT-2974: Added a story to show support for OnPush change detection form/parent element

* INT-2974: Added changelog entry

* INT-2974: Update CHANGELOG.md

Co-authored-by: Andrew Herron <[email protected]>

---------

Co-authored-by: Andrew Herron <[email protected]>
danoaky-tiny added a commit that referenced this pull request Apr 8, 2024
* INT-2974: Now uses OnPush change detection

* INT-2974: Added a story to show support for OnPush change detection form/parent element

* INT-2974: Added changelog entry

* INT-2974: Update CHANGELOG.md

Co-authored-by: Andrew Herron <[email protected]>

---------

Co-authored-by: Andrew Herron <[email protected]>
danoaky-tiny added a commit that referenced this pull request Apr 24, 2024
* INT-2974: Now uses OnPush change detection

* INT-2974: Added a story to show support for OnPush change detection form/parent element

* INT-2974: Added changelog entry

* INT-2974: Update CHANGELOG.md

Co-authored-by: Andrew Herron <[email protected]>

---------

Co-authored-by: Andrew Herron <[email protected]>
danoaky-tiny added a commit that referenced this pull request Apr 24, 2024
* INT-3274: Updated bug_report template

* INT-3274: Updated deps to Angular 17 and fixed tests

* INT-3274: Added new storybook dependencies

* INT-3274: Added angular.json for storybook compat

* INT-3274: Added .browserslistrc

* INT-3274: Migrated stories to new v7 storybook format

* INT-3274: Added `preinstall` back

* INT-3274: Eslint fix

* INT-3274: Moved target change to storybook specific tsconfig, and put back comment

* INT-3274: Reverted unnecessary format

* INT-3274: Edited comment

* INT-3274: Trimmed out unnecessary builds and props from `angular.json`

* INT-3274: Add gh-pages for storybook deployment

* INT-3274: Patch angular update

* INT-3274: Removed old tslint ignore

* INT-3274: Fix rxjs deprecated usage

* INT-3274: Recreated yarn.lock

* INT:3274: Use node v20 for Jenkins CI

* INT-3274: Disable storybook telemetry

* INT-3274: Removed react dev dependencies

* INT-3274: Added react and react-dom back as they're peer dependencies of storybook addons

* INT-3274: Fixed storybook warnings about included unused imports

* INT-3274: Upgrade dependencies

* INT-3274: Added changelog entries

* INT-3274: Updated issue template code sandbox

* INT-3274: Remove zone.js-11 dependency

* INT-3274: Use waluigi v7

* INT-3274: Bumb minor version

* INT-3274: Added publish step back again

* INT-3274: Add testContainer arg

* INT-3274: Add "yarn build" step

* INT-2974: Support OnPush change detection (#368)

* INT-2974: Now uses OnPush change detection

* INT-2974: Added a story to show support for OnPush change detection form/parent element

* INT-2974: Added changelog entry

* INT-3274: Bumb patch version

As feature/INT-2974 used 7.1.0-rc tag already

* INT-3274: rc.2

* INT-3274: Change `6-dev` loading test to use `6` instead

* INT-3274: Refactored to `isObserved` fn

* INT-3274: Simplified the ScriptLoader to use plain rxjs

---------

Co-authored-by: Andrew Herron <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants